package com.eya.rabbitmq.consumer;

import com.eya.rabbitmq.config.RabbitConfigure;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * TODO(这个类的作用)
 *
 * @auther: luolin
 * @since: 2018/11/19 11:10
 */
@RabbitListener(queues = RabbitConfigure.SPRING_BOOT_QUEUE)
@Component
public class SimpleMessageConsumer2 {

	@RabbitHandler
	public void consume(String message){
		System.out.println("SimpleMessageConsumer2 get message : "+message);
	}

}
